package concur;

public class ConApp {

	public static void main(String[] args) {
		Thread.currentThread().setName("Main");//主线程名称
		//Thread t = new MyThread();
		Thread t = new Thread(new MyThreadR());//接受Runnable接口对象
		t.setName("MyThread");//当前线程名称
		t.start();
		
		Logic.somelogic();
		
		for(int i=0;i<10000;i++) {
			try {
				Thread.sleep(1000);
			}catch (InterruptedException e) {
				e.printStackTrace();
			}
			System.out.println("I'm thread Main");
		}
	}

}
